package com.hlf.modules.merchant.store.mapper;


import com.hlf.modules.merchant.store.entity.MerchantChannel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MerchantChannelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MerchantChannel record);

    int insertSelective(MerchantChannel record);

    MerchantChannel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MerchantChannel record);

    int updateByPrimaryKey(MerchantChannel record);

    /***
     *通过商户id和渠道id来查找
     * @param merchantId
     * @param channelId
     * @return
     */
    MerchantChannel selectByMerchanIdAndChannelId(@Param(value = "merchantId") String merchantId, @Param(value = "channelId") String channelId);
}